import request from '@/utils/request'

//管理员登录接口
export const adminLoginAPI = ({ username, password }) => {
  return request.post('/admin/admin/login', {
    username,
    password
  })
}

//编辑管理员信息接口
export const editAdminAPI = (id, username, password) => {
  return request.put(`/admin/admin/update`, { id, username, password })
}
